import { defHttp } from "@/utils/axios";


/**
 * 获取im用户签名
 * @param data
 */
export const getImSigByUser = (data: any) => {
return defHttp.get({
    url: `/system/user/tenXunUser/genUserSig`,
    params: data
    
}, {
    withToken: true
});
};


/**
 * 获取会话订单状态
 * @param data
 */
export const getSessionStatus = (data: any) => {
    return defHttp.post({
        url: `/biz/consultationsession/getSessionStatus`,
        data
    }, {
        withToken: true
    });
};

/**
 * 创建会话订单状态
 * @param data
 */
export const getOrCreateSession = (data: any) => {
    return defHttp.post({
        url: `/biz/consultationsession/getOrCreateSession`,
        data
    }, {
        withToken: true
    });
};

/**
 * 结束会话订单
 * @param data
 */
export const endConsultationSession = (data: any) => {
    return defHttp.post({
        url: `/biz/consultationsession/endConsultationSession`,
        data
    }, {
        withToken: true
    });
};

